<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%namespace System.Collections.Generic%>

<!--header end-->

<!--TheCurrent start-->
<div id="foruminfo">
	
	<div class="userinfo">
		<h2><a href="{Config.WebsiteUrl}" class="home">{Config.WebsiteTitle}</a>
			  <span><a href="usercp.aspx">用户中心</a></span>
			  <strong>治疗信息</strong>
		</h2>
	</div>
	
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
	
</div>
<!--TheCurrent end-->

<!--主体-->
<div class="controlpannel">
   <%template _memmenu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _mempatientmenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if ErrorCount==0%>
					
						<%if IsPost%>
						
							<%template _msgbox%>
							
						<%else%>
								
					   <form action="" method="post" ID="recordform">
					   	  <input name="thid" type="hidden" value={PTInfo.Id} />
					   	  <input name="treatmentid" type="hidden" value={PTInfo.TreatmentId}
					   	  <input name="state" type="hidden" value={PTInfo.State} />
					   	  
					   	  <label for="treatmentname">治疗名称</label>
					   	  <input name="treatmentname" type="text" class="colorblue" id="treatmentname" 
								       size="20" value="{PTInfo.TreatmentName}" disabled="disabled"/>&nbsp;
								<br />
					   	
					   	  <label for="startdate">开始时间:</label>
								<input name="startdate" type="text" class="colorblue" id="startdate" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       size="20" value="{PTInfo.StartDate}" />&nbsp;
								<br />
								
								<label for="dosage">剂量:</label>
								<input name="dosage" type="text" class="colorblue" id="dosage" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       size="20" value="{PTInfo.DataValue}" />{PTInfo.Unit} <input name="unit" type="hidden" value={PTInfo.Unit} />
								       &nbsp;&nbsp;正常范围介于{PTInfo.MinValue}{PTInfo.Unit}和{PTInfo.MaxValue}{PTInfo.Unit}之间
								<br />

                            <label for="purpose">使用目的:</label>
                            <select name="usepurpose" id="purpose" class="colorblue"
                                onfocus="this.className='colorfocus';" onblur="this.className='colorblue';">
                                    <%csharp%>if(PTInfo.UsePurpose != 1){<%/csharp%> 
                                        <option value="1" selected>治疗本病</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="1" selected>治疗本病</option>
                                    <%csharp%>} <%/csharp %>      
                                    <%csharp%>if(PTInfo.UsePurpose != 2){<%/csharp%> 
                                        <option value="2" selected>医生建议</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="2" selected>医生建议</option>
                                    <%csharp%>} <%/csharp %>
                                    <%csharp%>if(PTInfo.UsePurpose != 3){<%/csharp%> 
                                        <option value="3" selected>其它</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="3" selected>其它</option>
                                    <%csharp%>} <%/csharp %>                                                      
                            </select>
						   <br />
						   <br />						   

						<%csharp%>if(PTInfo.State != Constants.CURRENT_USING){<%/csharp%>
						   <label for="enddate">结束时间:</label>
								<input name="enddate" type="text" class="colorblue" id="enddate" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       size="20" value="{PTInfo.EndDate}" />&nbsp;
								<br />
								
								<label for="purpose">停止使用原因:</label>
                                <select name="stopreason" id="stopreason" class="colorblue"
                                    onfocus="this.className='colorfocus';" onblur="this.className='colorblue';">
                                    <%csharp%>if(PTInfo.UsePurpose != 1){<%/csharp%> 
                                        <option value="1" selected>没有效果</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="1" selected>没有效果</option>
                                    <%csharp%>} <%/csharp %>      
                                    <%csharp%>if(PTInfo.UsePurpose != 2){<%/csharp%> 
                                        <option value="2" selected>医生建议</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="2" selected>医生建议</option>
                                    <%csharp%>} <%/csharp %>
                                    <%csharp%>if(PTInfo.UsePurpose != 3){<%/csharp%> 
                                        <option value="3" selected>其它</option>
                                    <%csharp%>} else {<%/csharp %>
                                        <option value="3" selected>其它</option>
                                    <%csharp%>} <%/csharp %>                                                      
                                </select> 
						   <br />
						<%csharp%>}<%/csharp%>

						<br />
						<label for="Submit">&nbsp;</label>
						<input type="button" name="btnSubmit" value="确定" class="sbutton" 
						       ID="btnSubmit" onclick="checkform();"/>
						
					</form>
				<%/if%>
				</div>
					
				<%else%>
					<%template _memerrmsgbox%>
				<%/if%>
					
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
